//
//  MyNotificationTableViewCell.m
//  SmartCoin
//
//  Created by apple on 2018/3/15.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import "MyNotificationTableViewCell.h"

@implementation MyNotificationTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

/**
 @property (nonatomic ,retain)UIButton *header;
 @property (nonatomic ,retain)UILabel *namelabel;
 @property (nonatomic ,retain)UILabel *wordlabel;
 @property (nonatomic ,retain)UILabel *timelabel;
 */

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    _header = [[UIButton alloc] initWithFrame:CGRectMake(12, 10, 50, 50)];
    _header.layer.cornerRadius = 4;
    _header.backgroundColor = bggrayColor;
    
    _namelabel = [[UILabel alloc] initWithFrame:CGRectMake(72, 10, 130, 24)];
    _namelabel.font = [UIFont systemFontOfSize:17];
    _namelabel.textColor = [UIColor blackColor];
    
    _wordlabel = [[UILabel alloc] initWithFrame:CGRectMake(72, 35, 200, 20)];
    _wordlabel.textColor = [CXSinglerModel colorWithHex:@"999999" alpha:1];
    _wordlabel.font = [UIFont systemFontOfSize:14];
    
    _timelabel = [[UILabel alloc] initWithFrame:CGRectMake(cx_wid - 12 - 100, 14, 100, 17)];
    _timelabel.font = [UIFont systemFontOfSize:12];
    _timelabel.textAlignment = NSTextAlignmentRight;
    _timelabel.textColor = [CXSinglerModel colorWithHex:@"999999" alpha:1];
    UIView *layerView = [[UIView alloc] initWithFrame:CGRectMake(0, 69.5, cx_wid, 0.5)];
    layerView.backgroundColor = [CXSinglerModel colorWithHex:@"666666" alpha:1];
    
    [self.contentView addSubview:_header];
    [self.contentView addSubview:_namelabel];
    [self.contentView addSubview:_wordlabel];
    [self.contentView addSubview:_timelabel];
    [self.contentView addSubview:layerView];
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
